﻿using LogManager.Core.Models;

namespace LogManager.Core.Services.Location
{
    public class LocationArchivingProgress : LocationOperationProgress
    {
        public LocationArchivingProgress(ILocation location)
            : base(location)
        {
        }

        public LocationArchivingProgress(LocationArchivingProgress other)
            : this(other.Location)
        {
            this.DestinationResult = other.DestinationResult;
            this.LocationArchivingStep = other.LocationArchivingStep;
            this.LogFilesSearchResult = other.LogFilesSearchResult;
            this.OperationState = other.OperationState;
            this.SourceResult = other.SourceResult;
        }

        public LocationArchivingStep LocationArchivingStep { get; set; }
        public SimpleServiceResult SourceResult { get; set; }
        public SimpleServiceResult DestinationResult { get; set; }
        public LogFilesSearchResult LogFilesSearchResult { get; set; }
    }

}
